package com.briup.cms.dao;

import com.briup.cms.bean.Inform;
import org.apache.ibatis.annotations.*;

import java.util.List;


public interface InformMapper {

    @Select("select * from inform")
    List<Inform> selectAll();


    @Insert("insert into inform values(null,#{content},#{article_id},#{user_id})")
    void insert(Inform inform);

    @Update("update inform set content=#{content},article_id=#{article_id},user_id=#{user_id} where id=#{id}")
    void update(Inform inform);

    @Delete("delete from inform where id=#{id}")
    void delete(Inform inform);
}